import os
from flask import Flask
from blueprint import func

# 生成Flask实体对象
app=Flask(__name__, template_folder="view/", static_folder='view/static/')
# 注册蓝图
app.register_blueprint(func)




if __name__ == '__main__':
    # flask启动
    app.run(host='localhost', port=8080)